package com.cloud.basic.Advance.Design.BuilderPattern;

/**
 * @program: basic
 * @description: 项目经理
 * @author: Cloud
 * @create: 2022/2/23 16:43:08
 */
public class ProductManager {

    protected Builder builder;

    public ProductManager(Builder builder) {
        this.builder = builder;
    }

    public Product construct(){
        builder.buildPartA();
        builder.buildPartB();
        builder.buildPartC();
        return builder.getProduct();
    }
}
